package com.zhq.blog.core.domain.user;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Transient;
import com.zhq.blog.core.domain.BasePersistentDomain;

@Entity
public class UserRank extends BasePersistentDomain<UserRankRepository> {
	
	private String name;    //组头衔
	private long experienceMix; //经验最少值
	private long experienceMax; //经验最大值
	private long star;   //星星数
	private long discountCommon;//普通用户折扣
	private long discountVip;//Vip用户折扣
	private long commonCardAdd;//兑奖数
	private long vipCardAdd;//兑奖数
	
    @Transient
    protected List<UserRank> userRankList;
	
	public List<UserRank> getUserRankList() {
		return userRankList;
	}

	public void setUserRankList(List<UserRank> userRankList) {
		this.userRankList = userRankList;
	}

	public UserRank(){}
	
	public UserRank(String name, long experienceMix, long experienceMax,
			long star, long discountCommon, long discountVip,
			long commonCardAdd, long vipCardAdd) {
		super();
		this.name = name;
		this.experienceMix = experienceMix;
		this.experienceMax = experienceMax;
		this.star = star;
		this.discountCommon = discountCommon;
		this.discountVip = discountVip;
		this.commonCardAdd = commonCardAdd;
		this.vipCardAdd = vipCardAdd;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public long getExperienceMix() {
		return experienceMix;
	}



	public void setExperienceMix(long experienceMix) {
		this.experienceMix = experienceMix;
	}



	public long getExperienceMax() {
		return experienceMax;
	}



	public void setExperienceMax(long experienceMax) {
		this.experienceMax = experienceMax;
	}



	public long getStar() {
		return star;
	}



	public void setStar(long star) {
		this.star = star;
	}



	public long getDiscountCommon() {
		return discountCommon;
	}



	public void setDiscountCommon(long discountCommon) {
		this.discountCommon = discountCommon;
	}



	public long getDiscountVip() {
		return discountVip;
	}



	public void setDiscountVip(long discountVip) {
		this.discountVip = discountVip;
	}



	public long getCommonCardAdd() {
		return commonCardAdd;
	}



	public void setCommonCardAdd(long commonCardAdd) {
		this.commonCardAdd = commonCardAdd;
	}



	public long getVipCardAdd() {
		return vipCardAdd;
	}



	public void setVipCardAdd(long vipCardAdd) {
		this.vipCardAdd = vipCardAdd;
	}
	

	
	
}
